<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2019/11/4
  Time: 21:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>河大附幼选课系统</title>
    <style type="text/css">
        *{
            padding: 0;
            margin: 0;
        }

        .login{
            width: 100%;
            height: 100%;
            /*margin-left:15%;*/
            /*margin-top: 100px;*/
            opacity: 0.7;
            background-color: white;
            position: absolute;
        }
        .loginTitle{
            width: 100%;
            /*text-align: center;*/
            color: #5CACEE;
            font-size: 30px;
            font-family: KaiTi;
            margin-top: 2%;
        }
        .password{
            width: 60%;
            margin-left: 20%;
            margin-top: 5%;
            text-align: center;
            font-size: 24px;
            font-family: KaiTi;
            color: #5CACEE;
        }

        input::-webkit-input-placeholder{
            color: #5CACEE;
        }
        .btn_login{
            width: 20%;
            height: 32px;
            margin-left: 24%;
            border: none;
            outline:none;
            background-color: #5CACEE;
            color: white;
            cursor:pointer;
        }
        .btn_reset{
            width: 20%;
            height: 32px;
            margin-left: 12%;
            border: none;
            outline:none;
            background-color: #5CACEE;
            color: white;
            cursor:pointer;
        }
        button:hover{
            background-color: #0099FF;
        }
    </style>

</head>
<body>
<div class="login">
    <div class="loginTitle">
        <button onclick="window.history.go(-1);" class="btn btn-warning"  style="font-size: 20px;position: relative;left: 20px">⬅</button>
        <b style="position: relative;left:300px">教师添加界面</b>
    </div><br><br>
    <div class="password">
        <form action="../admin/updateTea">
            <input value="${teacher.id}" name="id" hidden>
            姓名:<input type="text" name="tea_name" id="tea_name" value="${teacher.tea_name}" autocomplete="off"/><br><br>
            账号:<input type="text" name="tea_account" id="tea_account" value="${teacher.tea_account}" autocomplete="off"/><br><br>
            密码:<input type="password" name="tea_password" id="tea_password" value="${teacher.tea_password}" autocomplete="off"/><br><br>
            <button type="submit"class="btn_login">提交</button>
            <button type="reset"class="btn_reset">重置</button><br>
        </form>
    </div>
</div>

</body>
<script type="text/javascript">
    var msg = ${msg};
    if (msg==2){
        alert("添加成功");
    }
    if(msg==3){
        alert("添加失败")
    }
    if(msg==4){
        alert("修改失败");
    }
    if(msg==5){
        alert("修改成功!");
    }
</script>

</html>
